module.exports = {
  transpileDependencies: true,
  lintOnSave: false,
  // publicPath: '/h5/',
  //反向代理的配置
  devServer: {
    proxy: {
      "/api": {
        target: "https://3153u3s982.uicp.fun/",
        ws: false, // 是否启用websockets
        changeOrigin: true, //开启代理
        pathRewrite: { "^/": "" }, //这里重写路径
      },
    },
  },

  css: {
    loaderOptions: {
      postcss: {
        postcssOptions: {
          plugins: [
            require('postcss-px2rem')({
              remUnit: 75 // 将1rem设置为75px
            })
          ]
        }
      }
    }
  }
}

